#!/bin/bash
# 批量拉取多个镜像
# 检查images_to_pull.txt文件是否存在
if [ ! -f "image_list.txt" ]; then
    echo "File images_to_pull.txt not found. Please create it with the list of images to pull."
    exit 1
fi

# 读取文件并逐行拉取镜像
while IFS= read -r image; do
    echo "Pulling image: $image"
    docker pull "$image"
done < "image_list.txt"

echo "All images have been pulled."
